<h1>Student Management</h1>
<table border=1>
	<thead>
		<td>Student id</td>
		<td>Student name</td>
		<td>Action</td>
	</thead>
<% @students.each do |student| %>
	<tr>
		<td><%= link_to student.code,student %></td>
		<td> <%= student.name %></td>
		<td>
			<%= link_to "Edit", edit_student_path(student) %>|
			<%= link_to "Delete", student, :confirm => "Are you sure ?", :method => :delete %>
		</td>
	</tr>
<% end %>
</table>
<p> <%= link_to "Add new student",new_student_path %></p>